 |
translatorClass uniquely identifies the translator. This string must begin with a letter and can contain only alphanumeric characters, hyphens (-), and underscores (_). |
 |
title describes the translator in no more than 40 characters. This string appears in the Modify > Translate menu as well as in the Translation preferences. |
 |
nExtensions specifies the number of file extensions to follow. If nExtensions is 0, the translator can run on any file. |
 |
extension specifies a file extension (for example, "htm" or "SHTML" ) that this translator can work with. This string is case insensitive and should not contain a leading period. The array should contain the same number of extension elements as are specified in nExtensions . |
 |
nRegExps specifies the number of regular expressions that will follow. If nRegExps is 0, runDefault is the next element in the array. |
 |
regExps specifies a regular expression to check for. The array should contain the same number of regExps elements as are specified in nRegExps , and at least one of the regExps must match a piece of the document's HTML source before the translator can act on a file. |
 |
runDefault specifies the default preference for running this translator. Possible values are "allFiles" , "noFiles" , "byExtension" , and "byExpression" . If you set runDefault to "byExtension" but do not specify any extensions (see extension , above), the effect is the same as setting "allFiles" . If you set runDefault to "byExpression" but do not specify any expressions (see regExps , above), the effect is the same as setting "noFiles" . Whatever value you set for runDefault can be overridden by the user in the Preferences dialog box. |